/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package systole.view.abstractController;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author Juan Manuel
 */
public class EditionViewCloseListener  implements ActionListener{

    private AbstractEditViewController controller;

    /**
     * @param controller
     */
    public EditionViewCloseListener(AbstractEditViewController controller){
        super();
        this.controller = controller;
    }

    public void actionPerformed(ActionEvent e) {
        this.controller.cancel();
    }

}
